package jbp.domain;

import java.util.List;
import java.util.Map;

/**
 * 数据映射基类，
 * @param <T> BaseEntity
 * @param <E> Integer/Long
 */
public interface JbpBaseRepos<T,E> {
    T SelById(E id); //接收int或long型数据

    List<T> SelList(Map<String, Object> params);

    int getCount(Map<String, Object> params);

    boolean Add(T entity);

    boolean Update(T entity);

    boolean Delete(String ids);
}
